Skip to content

Do not isolate tests - #27

Closed
radarhere wants to merge 5 commits into
akx:pytest-xdist-v2from
radarhere:pytest-xdist-v2
Closed

Do not isolate tests#27
radarhere wants to merge 5 commits into
akx:pytest-xdist-v2from
radarhere:pytest-xdist-v2

Conversation

@radarhere

Copy link
Copy Markdown

Suggestion for python-pillow#9945

If you don't think we need to isolate tests, then let's not.

hugovk and others added 5 commits September 8, 2026 16:43
Pass the options at each call site rather than putting them in addopts, so pytests may also run without test-xdist.

REVERSE dropped because xdist runs tests in arbitrary order anyhow. That matrix entry still does PYTHONOPTIMIZE=1.

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* ru_maxrss never falls, so leak tests were measuring occasional transient
  spikes, not true leaks. Instead, for leak tests we now read the current
  RSS, which falls (to a degree, depending on system allocator strategy)
  when memory is released, and also doesn't depend on the process's past.
* The tests' limits were adjusted based on empirical measurements.
@akx

akx commented Sep 9, 2026

Copy link
Copy Markdown
Owner

It was a "maybe" :) Since the failures are flakes, a PR will likely not show them.

@radarhere

Copy link
Copy Markdown
Author

How many times does it need to run successfully before it stops being maybe?

@akx

akx commented Sep 9, 2026

Copy link
Copy Markdown
Owner

I can remove the isolation and we can merge the xdist PR without it, and then add isolation back if needed. Is that OK?

@radarhere

Copy link
Copy Markdown
Author

Sounds like a plan to me.

@akx

akx commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Removed isolation in pytest-xdist-v2 itself. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants